/*!
 * Page: pages/order/detail/detail
 * License: MIT
 * Created: 2019-08-29 11:44
 */

@import '../../var';
page {
  background-color: #fff;
}

.header {
  z-index: 2;
  width: 750rpx;
  padding-bottom: 40rpx;
  color: #fff;
  background: $address-bankground-color;
  .title {
    width: 100%;
    font-size: 36rpx;
    text-align: center;
    background: $address-bankground-color;
  }
  .hasAddress {
    align-items: center;
    justify-content: center;
    width: 690rpx;
    margin: 0rpx 30rpx 0rpx;
    padding-bottom: 60rpx;
    .addressInfo {
      width: 676rpx;
      height: 100%;
      font-size: 30rpx;
      .addressList {
        display: flex;
        align-items: center;
        margin-top: 10rpx;
        .imgBox {
          width: 27rpx;
          height: 32rpx;
          margin: 10rpx 23rpx 10rpx 0rpx;
          image {
            width: 100%;
            height: 100%;
          }
        }
        .addressDetail {
          width: 90%;
        }
      }
    }
  }
}

.box {
  padding-bottom: 30rpx;
  background-color: #fff;
}

.shopkeeper {
  width: 690rpx;
  height: 104rpx;
  margin: -60rpx 30rpx 0;
  padding: 0 28rpx;
  border-radius: 16rpx;
  background-color: #fff;
  box-shadow: 0 2rpx 4rpx 2rpx rgba(0, 0, 0, 0.14);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  .avatar {
    width: 48rpx;
    height: 48rpx;
  }
  text {
    margin-left: 16rpx;
    font-size: 24rpx;
    color: $title-color;
  }
  .authenticationBox {
    position: absolute;
    left: 64rpx;
    top: 64rpx;
    display: flex;
    align-items: center;
    width: 15rpx;
    height: 15rpx;
    image {
      width: 100%;
      height: 100%;
      border-radius: 0;
    }
  }
  .icon {
    margin-left: auto;
    width: 12rpx;
    height: 39rpx;
  }
}

.buyer {
  width: 690rpx;
  height: 104rpx;
  margin: -60rpx 30rpx 0;
  padding: 0 28rpx;
  border-radius: 16rpx;
  background-color: #fff;
  box-shadow: 0 2rpx 4rpx 2rpx rgba(0, 0, 0, 0.14);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  .avatar {
    width: 48rpx;
    height: 48rpx;
  }
  text {
    margin-left: 16rpx;
    font-size: 24rpx;
    color: $title-color;
  }
  .authenticationBox {
    position: absolute;
    left: 64rpx;
    top: 64rpx;
    display: flex;
    align-items: center;
    width: 15rpx;
    height: 15rpx;
    image {
      width: 100%;
      height: 100%;
      border-radius: 0;
    }
  }
  .icon {
    margin-left: auto;
    width: 12rpx;
    height: 39rpx;
  }
}

.order-list {
  padding: 0 26rpx;
  background: #fff;
  .item {
    margin-bottom: 24rpx;
    border-radius: 16rpx;
    box-shadow: 0 2rpx 4rpx 2rpx rgba(0, 0, 0, 0.14);
    .status {
      padding: 22rpx 28rpx 20rpx;
      background: #f5f5f5;
      display: flex;
      flex-direction: column;
      .title {
        font-size: 28rpx;
        color: $title-color;
        font-weight: bold;
        display: flex;
        align-items: center;
        image {
          margin-right: 8rpx;
          width: 36rpx;
          height: 36rpx;
        }
        .express {
          margin-left: auto;
          font-size: 20rpx;
          font-weight: normal;
          color: #015e80;
        }
      }
      .tips {
        margin-top: 6rpx;
        font-size: 28rpx;
        line-height: 36rpx;
        color: #015e80;
      }
    }
    .info {
      padding: 24rpx 28rpx 28rpx;
      .product {
        display: flex;
        width: 100%;
        height: 100rpx;
        border: 1rpx solid $border-color;
        overflow: hidden;
        .productImg {
          width: 100rpx;
          height: 100rpx;
        }
        .productPrice {
          flex: 1;
          padding: 20rpx 20rpx 18rpx;
          display: flex;
          align-items: center;
          justify-content: space-between;
          .title {
            color: $title-color;
            font-size: 24rpx;
          }
          .productCount {
            color: $info-color;
            font-size: 22rpx;
            text-align: right;
            &-price {
              color: $title-color;
            }
          }
          .options {
            color: $info-color;
            font-size: 20rpx;
          }
        }
      }
      .price {
        margin-top: 24rpx;
        font-size: 22rpx;
        color: $title-color;
        font-weight: bold;
        text:not(:first-child) {
          margin-left: 8rpx;
        }
      }
      .foot {
        margin-top: 24rpx;
        display: flex;
        align-items: center;
        font-size: 24rpx;
        color: $title-color;
        text {
          color: #b2b2b2;
        }
        .btns {
          flex: 1;
          display: flex;
          justify-content: flex-end;
          align-items: center;
          button {
            height: 48rpx;
            padding: 0 26rpx;
            margin: 0 0 0 10rpx;
            background-color: inherit;
            color: $title-color;
            border: 1rpx solid $border-color;
            border-radius: 26rpx;
            font-size: 24rpx;
            display: flex;
            justify-content: center;
            align-items: center;
            &:not(:first-child) {
              margin-left: 20rpx;
            }
          }
        }
      }
    }
  }
}

.orderInfo {
  box-sizing: border-box;
  width: 750rpx;
  margin-top: 20rpx;
  padding: 0rpx 30rpx;
  font-size: 26rpx;
  background-color: $bgcolor-light;
  .info-title {
    padding: 24rpx 0;
    font-size: 30rpx;
    font-weight: bold;
    color: $title-color;
  }
  .list {
    display: flex;
    flex: 1;
    margin: 15rpx 0;
    .logisticsTitle {
      height: 85rpx;
      line-height: 85rpx;
    }
    .content {
      width: 558rpx;
      padding-left: 30rpx;
      color: $text-color;
      word-wrap: break-word;
    }
  }
}

.card {
  padding: 0 30rpx 32rpx;
  background-color: #fff;
  &-title {
    padding: 24rpx 0;
    font-size: 30rpx;
    font-weight: bold;
    color: $title-color;
  }
  .row {
    display: flex;
    font-size: 24rpx;
    line-height: 35rpx;
    &:not(:first-child) {
      margin-top: 24rpx;
    }
    .title {
      color: $info-color;
      flex-shrink: 0;
    }
    .content {
      padding-left: 24rpx;
      color: $info-color;
      word-break: break-all;
    }
    .icon {
      padding-left: 10rpx;
      width: 12rpx;
      height: 35rpx;
    }
    .copy {
      width: 30rpx;
      height: 30rpx;
      padding: 0 10rpx;
      flex-shrink: 0;
    }
  }
}

.footerBtn {
  margin-top: 48rpx;
  padding-bottom: 60rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  button {
    margin: 0;
    padding: 0 48rpx;
    height: 76rpx;
    background: inherit;
    border-radius: 40rpx;
    border: 1rpx solid #ccc;
    font-size: 32rpx;
    color: $title-color;
    display: flex;
    justify-content: center;
    align-items: center;
    &:not(:first-child) {
      margin-left: 28rpx;
    }
    &.active {
      color: #fff;
      border-color: transparent;
      background: linear-gradient(90deg, #fc7a2d 0%, #fc2a40 100%);
    }
  }
}

.logisticsInfo {
  box-sizing: border-box;
  width: 100%;
  padding: 30rpx 30rpx 140rpx;
  background-color: $bgcolor-light;
  .listBox {
    padding-bottom: 50rpx;
    color: $info-color;
    .circular {
      position: relative;
      left: -8rpx;
      width: 16rpx;
      height: 16rpx;
      background-color: $decor-color;
      border-radius: 50%;
    }
    font-size: 26rpx;
    line-height: 32rpx;
    border-left: 1rpx solid #e8e8e8;
    .contentBox {
      flex: 1;
      margin: -20rpx 30rpx;
      .time {
        flex: 1;
        height: 56rpx;
        font-size: 20rpx;
        border-bottom: 1rpx solid #e8e8e8;
      }
    }
    &:first-child {
      margin-top: 14rpx;
      color: $primary-color;
      border-left: 1rpx solid $primary-color;
      .circular {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: $primary-color;
        image {
          position: absolute;
          width: 34rpx;
          height: 34rpx;
        }
      }
    }
    &:last-child {
      color: $info-color;
      .circular {
        background-color: $decor-color;
      }
      border-left: none;
      .time {
        border-bottom: none;
      }
    }
  }
}

.hasNoLogistics {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 20rpx auto;
  padding: 30rpx 0rpx;
  color: $primary-color;
  font-size: 28rpx;
  background-color: $bgcolor-light;
  &.cancel {
    color: #b3b3b3;
  }
}

.edit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 20rpx auto;
  padding: 30rpx 0rpx;
  color: $primary-color;
  font-size: 28rpx;
  background-color: $bgcolor-light;
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40rpx;
    height: 70rpx;
    font-size: 30rpx;
    border-radius: 35rpx;
    margin: 0 15rpx;
    border: 1px solid #cccccc;
    color: $title-color;
    &.ship {
      border: none;
      color: #fff;
      background-color: $primary-color;
    }
  }
}

.addShip {
  position: fixed;
  bottom: 30rpx;
  left: 30rpx;
  width: 690rpx;
  height: 80rpx;
  color: $title-color;
  font-size: 30rpx;
  line-height: 80rpx;
  text-align: center;
  background: $primary-color;
  border-radius: 40rpx;
}

.addBox {
  position: fixed;
  bottom: 0rpx;
  display: flex;
  flex: 1;
  padding: 30rpx;
  color: $primary-color;
  background-color: $bgcolor-gray;
  .addShips {
    width: 690rpx;
    height: 80rpx;
    font-size: 30rpx;
    line-height: 80rpx;
    text-align: center;
    background: $primary-color;
    background-color: $bgcolor-light;
    border-radius: 40rpx;
  }
}

.comfrim {
  position: fixed;
  bottom: 30rpx;
  left: 201rpx;
  width: 330rpx;
  height: 70rpx;
  font-size: 29rpx;
  line-height: 70rpx;
  text-align: center;
  background-color: $primary-color;
  border-radius: 35rpx;
  opacity: 0.8;
}

/** 价格**/

.price-box {
  padding: 60rpx 30rpx 42rpx;
  background-color: #fff;
}

.priceRules {
  display: flex;
  height: 36rpx;
  justify-content: space-between;
  font-size: 22rpx;
  color: #999;
  &.priceColor {
    color: $price-color;
  }
  &.countPrices {
    font-size: 30rpx;
    color: $title-color;
    font-weight: 600;
  }
}

//弹出框
.detailBox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 800;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  .contentBox {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 34rpx 32rpx;
    color: $title-color;
    background-color: $bgcolor-light;
    border-radius: 24rpx 24rpx 0 0;
    .titleBox {
      display: flex;
      flex: 1;
      align-items: center;
      justify-content: space-between;
      .title {
        font-size: 32rpx;
        font-weight: bold;
      }
      .cancel {
        font-size: 60rpx;
        height: 44rpx;
        line-height: 44rpx;
        overflow: hidden;
      }
    }
    .content {
      margin-top: 58rpx;
      max-height: 50vh;
      overflow: auto;
      .item {
        display: flex;
        align-items: center;
        &:not(:first-child) {
          margin-top: 40rpx;
        }
        .product {
          display: flex;
          width: 100%;
          height: 100rpx;
          border: 1rpx solid $border-color;
          overflow: hidden;
          .productImg {
            width: 100rpx;
            height: 100rpx;
          }
          .productPrice {
            flex: 1;
            padding: 20rpx 20rpx 18rpx;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .title {
              color: $title-color;
              font-size: 24rpx;
            }
            .productCount {
              color: $info-color;
              font-size: 22rpx;
              text-align: right;
              &-price {
                color: $title-color;
              }
            }
            .options {
              color: $info-color;
              font-size: 20rpx;
            }
          }
        }
      }
    }
    .btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 686rpx;
      height: 88rpx;
      margin: 80rpx auto 0;
      padding: 0;
      color: #ffffff;
      font-weight: bold;
      font-size: 32rpx;
      background-color: $primary-color;
      border-radius: 44rpx;
      &[disabled] {
        background-color: #e4e5e5;
        color: $title-color;
      }
    }
  }
}

//样式重置
wx-checkbox .wx-checkbox-input {
  border-radius: 50% !important;
  &.wx-checkbox-input-checked {
    border-color: $primary-color !important;
    background-color: $primary-color !important;
    &:before {
      content: '\EA08';
      color: #ffffff;
      font-size: 18px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -48%) scale(0.73);
    }
  }
}
